<!---
	Copyright 2010 Edward Trudeau, Jeremy Battle
    This software is freely available under the MIT License: http://www.opensource.org/licenses/mit-license.php
    http://ayc.googlecode.com
    
--->

<cfcomponent name="Field" output="false" extends="_Field">

	<cfset variables.optionService = application.appFactory.get("OptionService") />
	<cfset variables.questionService = application.appFactory.get("QuestionService") />
    
    <cffunction name="getOptions" access="public" returntype="array" hint="Retrieves options and values for this field">
    	
        <cfreturn variables.optionService.getOptions(fieldId=getFieldId()) />        
    </cffunction>
    
     <cffunction name="getQuestions" access="public" returntype="array" hint="Retrieves questions for this field">
    	
        <cfreturn variables.questionService.getQuestions(fieldId=getFieldId()) />        
    </cffunction>
	
   
</cfcomponent>


